package com.k.note;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.WindowManager;

import com.core.MainApp;

import java.util.Map;

/**
 * Created by mac_wk on 14-12-15.
 */
public class MainActivityProxy3 extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main_activity2);
        MainApp mainApp = (MainApp) getApplication();
        for (Map.Entry<String,Activity> entry:mainApp.activityMap.entrySet())
        {
            Log.d("message",entry.getKey());
           // entry.getValue().finish();
        }
        mainApp.activityMap.put("MainActivityProxy3",this);
        Log.d("message_size",mainApp.activityMap.size()+"");
    }

    @Override
    protected void onNewIntent(Intent intent) {
        super.onNewIntent(intent);
        Log.d("message", "onNewIntent");
    }
}
